//账号信息的ts类型

export interface ResponseData {
  code: number;
  msg: string;
  total: number;
}

//代表一个账号信息的ts类型
export interface Film {
  id: number;
  actors: string;
  counts: number;
  director: string;
  intro: string;
  isBanner: number | boolean;
  isExist: number | boolean;
  isHot: number | boolean;
  movieLength: number;
  name: string;
  photo: string;
  price: number;
  time: number | any;
  type: string;

}

export interface FilmOrder {
  amount: number;
  buyTime: any;
  director: string;
  message: string;
  mid: number;
  mname: string;
  oid: number;
  sid: number;
  sname: string;
  stime: [2023, 12, 31, 15, 10, 29];
  sum: number;
  type: string;
  uid: number;
  uname: string;
}

//数组包含全部的用户信息
export type Records = Film[]
export type RecordsOrder = FilmOrder[]

export interface FilmResponseData2 extends ResponseData {
  data: Film;
}

// 获取全部用户信息接口返回的数据ts类型
export interface FilmResponseData extends ResponseData {
  data: {
    records: Records
    total: number
  };
}

export interface OrderResponseData extends ResponseData {
  data: {
    records: RecordsOrder
    total: number
  };
}

//代表一个职位的ts类型
export interface RoleData {
  id?: number;
  createTime?: string;
  updateTime?: string;
  roleName: string;
  remark: null;
}

//全部职位的列表
export type AllRole = RoleData[]

//获取全部职位的接口返回的数据ts类型
// export interface AllRoleResponseData extends ResponseData {
//     data: {
//         assignRoles: AllRole
//         allRolesList: AllRole
//     }
// }

//给用户分配职位接口携带参数的ts类型
export interface SetRoleData {
  roleIdList: number[];
  userId: number;
}
